Skip to main content

filled

Type

property

Summary

Specifies whether graphics and shapes drawn with the paint tools are filled or hollow.

Syntax

set the filled [of <graphic>] to {true | false}

Description

Use the filled property to change the appearance of graphics

If the filled property is set to true, the interior of shapes is filled with the brushColor (or brushPattern, if one is set). If the graphic's style property is "line", the filled property has no effect.

The global setting of the filled property controls the appearance of shapes drawn with the paint tools. Once a paint shape is drawn, its appearance cannot be changed by changing the global filled property.

tip

Clicking the interior of a graphic whose filled is set to false does not send mouse messages to the graphic unless the graphic is already selected. To create a graphic whose interior is transparent, but clickable, set the graphic's filled property to true and its ink property to noOp.

note

When applied to graphics, the filled property behaves as a synonym for the opaque property.

Examples

set the filled to true -- affects paint tools
set the filled of graphic "Square" to false

command: global

glossary: property, paint tool, appearance, message

keyword: graphic

object: graphic

property: brushColor, ink, style, opaque, brushPattern, markerFilled, powerKeys, selected

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?